home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / link.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. LINK(3)             MINTLIB LIBRARY FUNCTIONS             LINK(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        link - link to a file
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <support.h>
  12.  
  13.        int link(const char *old, const char *new);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        old  points  to  a  path name naming an existing file. new
  17.        points to a path name naming the new directory entry to be
  18.        created. link creates a new hardlink (directory entry) for
  19.        the existing file.
  20.  
  21. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  22.         0 on success -1 on failure; errno is set to indicate  the
  23.        error.
  24.  
  25. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  26.        r✓re✓ea✓ad✓dl✓li✓in✓nk✓k(✓(3✓3)✓),✓, s✓sy✓ym✓ml✓li✓in✓nk✓k(✓(3✓3)✓),✓, u✓un✓nl✓li✓in✓nk✓k(✓(3✓3)✓),✓, F✓Fl✓li✓in✓nk✓k(✓(2✓2)✓)
  27.  
  28. N✓NO✓OT✓TE✓E
  29.        link  will  only  fuction properly if MiNT 0.9 or later is
  30.        active and the  file  system  supports  hardlinks.  MS-DOS
  31.        (TOS) file systems do not support hardlinks.
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.